import unittest
class Testlogin(unittest.TestCase):
    def test_login_succes(self):
        expect_value=0
        actual_value=login("admin","123456").get('code')
        self.assertEqual(expect_value,actual_value)
    def test_password_is_wrong(self):
        expect_value = 5
        actual_value = login("admin", "123446").get('code')
        self.assertEqual(expect_value, actual_value)
        def test_password_is_null(self):
        expect_value = 2
        actual_value = login("admin", "").get('code')
        self.assertEqual(expect_value, actual_value)

if __name__=="__admin__":
    suite=unittest.TestLoader()
    suite=suite.disover('.','test_login_test*.py')
    runner=unittest.TextTestRunner()
    runner.run(suite)
